package com.gitee.mazhenggg.mall.point.mybatis.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gitee.mazhenggg.mall.point.mybatis.pojo.PointDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface PointDOMapper extends BaseMapper<PointDO> {

    Long findPointByUserId(Long userId);
    void updatePointByUserId(@Param("userId") Long userId, @Param("amount")Long amount);
}